/**
 * 
 */
package de.muahd.saga.services.core.impl.repository;

import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import org.springframework.test.context.transaction.BeforeTransaction;

/**
 * @author user
 *
 */
public class AbstractDatabaseSetup extends AbstractTransactionalJUnit4SpringContextTests {

	@BeforeTransaction
    public void setupData() throws Exception {

        if (countRowsInTable("Customer") == 0) {
            executeSqlScript("classpath:data.sql", false);
        }
    }
	
}
